<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="js/jquery-1.12.4.js"></script>
		<script>
		$(document).ready(function(){
			var settings={validate:false,limit:5,name:"foo"};  
			var options={validate:true,name:"bar"};  
			var newOptions=$.extend(settings,options);
			//console.log(newOptions);
			
			
			function foo(options){  
    		var options = $.extend({  
       			 name:"bar",  
        		length:5,  
        		dataType:"xml"  
    		},options) 	
			}  
			foo({name:"zzg"}); 
			console.log(foo);
		})
		</script>
	</head>
	<body>
	</body>
</html>
